<?php
defined('_JEXEC') or die;
?>

<?php if(is_array($list) && !empty($list)) :?>
<ul class="categories">
	<?php foreach($list as $parent=>$item) :?>
		<?php if(is_array($item['next']) && !empty($item['next'])) :?>
			 <strong><li><?php echo $item['name']?></li></strong>
             <ul>
             <?php foreach($item['next'] as $child) :?>
             	<li>- 
   <a href="<?php echo JRoute::_(DoskaRoute::getCategoryRoute($child['id'].':'.$child['alias']));?>"><?php echo $child['name'];?></a>
             	</li>
             <?php endforeach;?>
		<?php endif;?>
	<?php endforeach;?>
</ul>
<?php endif;?>
